/*
 * Copyright 2025 The JA-SIG Collaborative. All rights reserved.
 * distributed with this file and available online at
 */
package com.lap.auth.adapter.driving.query.user;

import com.lap.auth.adapter.driving.query.user.po.UserSimplePo;
import com.lap.auth.adapter.driving.query.user.po.UserWithOrgPo;
import com.lap.auth.application.user.dto.UserSimpleDto;
import com.lap.auth.application.user.dto.UserWithOrgDto;
import com.lap.auth.shared.tools.BaseConverter;
import java.util.List;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

@Mapper(componentModel = "spring")
public interface UserQueryConverter extends BaseConverter {

  @Mapping(target = "orgPaths", source = "orgPath")
  UserWithOrgDto toDto(UserWithOrgPo userWithOrgPo);

  List<UserWithOrgDto> toDtoList(List<UserWithOrgPo> list);

  UserSimpleDto toSimpleDto(UserSimplePo userSimplePo);

  List<UserSimpleDto> toSimplesDtoList(List<UserSimplePo> list);
}
